package com.flitsneak.designpatterns.mixedpatterns.facadeandfactoryandstrategy.facade;

import com.flitsneak.designpatterns.mixedpatterns.facadeandfactoryandstrategy.enums.STRATEGY_TYPE;
import com.flitsneak.designpatterns.mixedpatterns.facadeandfactoryandstrategy.factory.RecoverFactory;
import com.flitsneak.designpatterns.mixedpatterns.facadeandfactoryandstrategy.strategy.RecoverContext;
import com.flitsneak.designpatterns.mixedpatterns.facadeandfactoryandstrategy.strategy.RecoverStrategy;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2023/1/16 10:22
 * @description 追回女神联系方式门面
 */
public class RecoverFacade {

    public static void recover(STRATEGY_TYPE strategyType) {
        RecoverStrategy recoverStrategy = RecoverFactory.getRecoverStrategy(strategyType);

        RecoverContext context = new RecoverContext();
        context.setRecoverStrategy(recoverStrategy);
        context.recover();
    }
}
